@import './common';
@import './head';
@import './foot';

.title-box {
    text-align: center;

    p {
        margin-bottom: 0;

        &:first-child {
            margin-bottom: 15px;
        }

        &:nth-child(2) {
            margin-bottom: 15px;
        }
    }

    .title-line {
        width: 52px;
        height: 3px;
        background: #7992A6;
        margin: 0 auto;
    }
}

.service-layout-box {
    background: url('../images/network_384.png') no-repeat;
    background-size: cover;
    margin-bottom: 60px;

    .service-box {
        padding: 40px 0;

        .service-list-box {
            padding-top: 50px;
            display: flex;
            justify-content: center;

            img {
                width: 100px;
                height: 100px;
                margin-bottom: 65px;
            }

            .service-item {
                text-align: center;

                .service-title {
                    margin-bottom: 40px;
                    font-size: 32px;
                    font-weight: bold;
                    color: #222222;
                }

                p {
                    margin-bottom: 0;

                    &:last-child {
                        max-width: 340px;
                        font-size: 18px;
                        color: #333333;
                    }
                }

                &:nth-child(2) {
                    margin: 0 180px;
                }
            }
        }
    }
}

.workflow-box {
    position: relative;
    margin-bottom: 60px;

    .workflow-list-box {
        padding-top: 30px;
        position: relative;
        z-index: 9;

        .workflow-list {
            display: flex;
            justify-content: center;

            img {
                width: 154px;
                height: auto;
                margin-right: 160px;

                &:last-child {
                    margin-right: 0;
                }
            }
        }
    }

    .img-line {
        position: absolute;
        bottom: -17px;
        left: 50%;
        transform: translate(-50%);
        max-width: 1600px;
        width: 100%;
        z-index: 1;
    }
}

.support-box {
    color: #ffffff;
    padding: 60px 0;
    background: url('../images/network_41.png') no-repeat;
    background-size: cover;


    .title-box {
        margin-bottom: 60px;
    }

    .title-line {
        background: #ffffff;
    }

    .support-content {

        .support-list {
            display: flex;
            justify-content: center;

            &:last-child {
                margin-top: 80px;
            }

            .support-item {
                display: flex;
                margin-right: 80px;

                .support-number {
                    font-size: 24px;
                    width: 60px;
                    height: 60px;
                    line-height: 60px;
                    text-align: center;
                    border: 1px solid #ffffff;
                    border-radius: 50%;
                    margin-right: 18px;
                }

                .support-text {
                    .support-title {
                        margin-bottom: 20px;
                    }

                    p {
                        margin-bottom: 0;
                        max-width: 400px;

                        &:last-child {
                            font-size: 16px;
                            line-height: 36px;
                        }
                    }
                }
            }
        }
    }
}

.custom-box {
    padding-top: 60px;
    margin-bottom: 60px;

    .title-box {
        margin-bottom: 40px;
    }

    .custom-img {
        img {
            width: 100%;
            max-width: 700px;
            height: auto;
            margin-right: -50px;
        }

        .custom-img-desc {
            background: rgba(121, 146, 166, 0.8);
            padding: 75px 85px;
            color: #ffffff;

            .custom-title {
                margin-bottom: 20px;
                font-size: 26px;
                font-weight: bold;

                &+p {
                    max-width: 768px;
                    line-height: 48px;
                    font-size: 20px;
                }
            }
        }
    }

    .custom-list {
        display: flex;
        justify-content: center;
        margin-bottom: 80px;

        .custom-item {
            position: relative;
            text-align: center;
            font-size: 18px;
            width: 378px;
            margin-right: 1.5%;

            &:hover {
                .custom-bg {
                    background: map-get($map: $colors, $key: '799');
                }

                .custom-triangle {
                    border-top: 60px solid map-get($map: $colors, $key: '799');
                }
            }

            a {
                color: #ffffff;
            }

            &:last-child {
                margin-right: 0;
            }



            img {
                width: 80px;
                height: auto;
                margin-bottom: 10px;
            }

            .custom-bg {
                width: 100%;
                height: 130px;
                background: #AFBECA;
            }

            .custom-triangle {
                width: 0;
                height: 0;
                border-right: 189px solid transparent;
                border-left: 189px solid transparent;
                border-top: 60px solid #AFBECA;
            }

            .custom-text {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                padding-top: 30px;
            }
        }
    }
}

.idea-box {
    .title-box {
        margin-bottom: 40px;
    }

    .idea-list {
        display: flex;
        justify-content: center;

        .idea-item {
            width: 378px;
            padding: 40px 0;
            display: flex;
            margin-right: 30px;
            border: 1px solid #7992A6;

            &:last-child {
                margin-right: 0;
            }

            .idea-line {
                width: 10px;
                height: 100px;
                background: linear-gradient(0deg, #384B59, #7992A6);
                margin-right: 40px;
            }

            .idea-content {
                .idea-title {
                    font-size: 22px;
                    margin-bottom: 10px;
                    font-weight: bold;
                    color: #7992A6;

                    &+p {
                        font-size: 16px;
                        max-width: 270px;
                        line-height: 36px;
                        color: #333333;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 750px) {
    .title-box {
        p {
            &:first-child {
                font-size: 0.4533rem;
                margin-bottom: 0.2rem;
            }

            &:nth-child(2) {
                font-size: 0.2933rem;
                margin-bottom: 0.2rem;
            }
        }
    }

    .service-layout-box {
        margin-bottom: 0.5333rem !important;

        .service-box {
            padding: 0.5333rem 0 0 0 !important;
        }

        .service-list-box {
            padding-top: 0.24rem !important;
            flex-wrap: wrap;

            img {
                width: 1.3333rem !important;
                height: 1.3333rem !important;
                margin-bottom: 0.2rem !important;
            }

            .service-item {
                margin-bottom: 0.4rem;

                p {
                    &:last-child {
                        font-size: 0.3467rem !important;
                        line-height: 0.64rem;
                        max-width: 8.32rem !important;
                    }
                }

                &:nth-child(2) {
                    margin: 0 !important;
                }
            }

            .service-title {
                font-size: 0.4267rem !important;
                margin-bottom: 0.4rem !important;

            }
        }
    }

    .workflow-box {
        margin-bottom: 0.4rem !important;

        .workflow-list-box {
            .workflow-list {
                img {
                    width: 1.4533rem !important;
                    height: 2rem !important;
                    margin-right: 0.5333rem !important;

                    &:last-child {
                        margin-right: 0 !important;
                    }
                }
            }
        }

        .img-line {
            max-width: 100%;
            bottom: -8px;
        }
    }

    .support-box {
        padding: 0.5333rem 0.4rem;

        .title-box {
            margin-bottom: 0.4667rem;
        }

        .support-list {
            flex-wrap: wrap;

            &:last-child {
                margin-top: 0 !important;
            }

            .support-item {
                width: 100%;
                margin-right: 0 !important;
                margin-bottom: 0.4rem;

                .support-number {
                    font-size: 0.32rem !important;
                    width: 0.8rem !important;
                    height: 0.8rem !important;
                    line-height: 0.8rem !important;
                    text-align: center;
                    border: 1px solid #ffffff;
                    border-radius: 50%;
                    margin-right: 0.24rem !important;
                }

                .support-text {
                    flex: 1;

                    .support-title {
                        font-size: 0.4267rem;
                        margin-bottom: 0.2667rem !important;
                    }

                    p {
                        &:last-child {
                            max-width: 100%;
                            font-size: 0.32rem !important;
                            line-height: 0.64rem !important;
                        }
                    }
                }
            }
        }
    }

    .custom-box {
        padding: 0.5333rem 0.4rem !important;
        margin: 0 !important;

        .title-box {
            margin-bottom: 0.4rem !important;
        }

        .custom-list {
            margin-bottom: 0.5333rem !important;
            flex-wrap: wrap;
            justify-content: space-between;

            .custom-item {
                width: 4.4rem !important;
                margin-bottom: 0.4rem;
                margin-right: 0;

                a {
                    border: none;
                    font-size: 0.3467rem !important;
                    outline: none;
                    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
                }

                .custom-text {
                    padding-top: 0.1333rem !important;
                }

                img {
                    width: 1.0667rem;
                    height: 1.0667rem;
                }

                .custom-bg {
                    height: 1.6rem !important;
                }

                .custom-triangle {
                    border-right: 2.2rem solid transparent !important;
                    border-left: 2.2rem solid transparent !important;
                    border-top: 0.7333rem solid #AFBECA !important;
                }
            }
        }
    }

    .custom-img {
        flex-wrap: wrap;

        img {
            max-width: 100% !important;
            margin-right: 0 !important;
        }

        .custom-item {
            img {
                margin-bottom: 0 !important;
            }
            &:hover {
                .custom-bg {
                    background: map-get($map: $colors, $key: '799');
                }

                .custom-triangle {
                    border-top: 60px solid map-get($map: $colors, $key: '799');
                }
            }
        }

        .custom-img-desc {
            padding: 0.4rem !important;
            margin: -1.1733rem 0.6rem 0 0.6rem;

            .custom-title {
                font-size: 0.4267rem !important;
                margin-bottom: 0.1333rem !important;

                &+p {
                    max-width: 100% !important;
                    line-height: 0.64rem !important;
                    font-size: 0.3467rem !important;
                }
            }
        }
    }

    .idea-box {
        .title-box {
            margin-bottom: 0.4rem;
        }

        .idea-list {
            flex-wrap: wrap;
            padding: 0 1rem;

            .idea-item {
                margin-right: 0 !important;
                margin-bottom: 0.4rem;
                width: 100% !important;
                padding: 0.5333rem 0 !important;

                .idea-line {
                    width: 0.1333rem !important;
                    height: 1.6rem !important;
                    margin-right: 0.3333rem !important;
                }

                .idea-content {
                    .idea-title {
                        font-size: 0.4267rem !important;

                        &+p {
                            font-size: 0.3467rem !important;
                            max-width: 100% !important;
                            line-height: 0.64rem !important;
                        }
                    }
                }
            }
        }
    }

}